package com.dcliment.display.views
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	/**
	 * Tied to a library Item. Must have a YesButton, NoButton, and textField
	 * 
	 * @author dcliment
	 * version 1.0: 
	 */	
	public class WarningView extends MovieClip
	{
		public var yesButton:MovieClip;
		public var noButton:MovieClip;
		public var textField:TextField;
		
		public function WarningView()
		{
			yesButton 	= this["mYesButton"];
			noButton 	= this["mNoButton"];
			textField 	= this["mTextField"];
			
			if(!yesButton)
				throw new Error("WarningView ERROR :: element with linkage name 'mYesButton' :: Does not Exist");
			if(!noButton)
				throw new Error("WarningView ERROR :: element with linkage name 'mNoButton' :: Does not Exist");
			if(!textField)
				throw new Error("WarningView ERROR :: element with linkage name 'mTextField' :: Does not Exist");
		}
	}
}